package com.example.rocketmqdemo;

import org.apache.rocketmq.spring.autoconfigure.RocketMQAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;

@SpringBootApplication
@Import(RocketMQAutoConfiguration.class)
public class RocketmqdemoApplication {

	public static void main(String[] args) {
		/*
		 * 指定使用的日志框架，否则将会告警
		 * RocketMQLog:WARN No appenders could be found for logger (io.netty.util.internal.InternalThreadLocalMap).
		 * RocketMQLog:WARN Please initialize the logger system properly.
		 */
		System.setProperty("rocketmq.client.logUseSlf4j", "true");
		System.setProperty("rocketmq.client.logLevel", "ERROR");
		SpringApplication.run(RocketmqdemoApplication.class, args);
	}

}
